define(function(require, exports, module){
	var myOrderView = require("../view/myorder");
	var voucherCenterView = require("../view/vouchercenter");
    var MycollectsView = require("../view/mycollects");
    var MycollectdetailView = require("../view/mycollectdetail");
    var MyFocusView = require("../view/myfocus");
    var MembershipView = require("../view/membership");
    /*头部配置页*/
    var setView = require("../view/set");
	module.exports = Nuui.Controller.extend({
		actions: {
			"myorder": "toMyOrder",
			"vouchercenter": "toVoucherCenter",
			"mycollects":"toMycollects",
            "mycollectdetail":"toMycollectdetail",
			"myfocus":"toMyfocus",
			"membership":"toMembership",
            "set":"toSet"
		},
		
		toMyfocus: function(){
			App.header.reset({
				title: "我的关注",                
				leftButtonContent: "@back1"
			});
			App.footer.reset(0);
			App.container.show(new MyFocusView());
		},
		
		toMyOrder: function(){
			App.header.reset({
				title: "我的订单",
				leftButtonContent: "@back1"
			});
			App.footer.reset(0);
			App.container.show(new myOrderView());
		},
		toVoucherCenter: function(){
			App.header.reset({
				title: "充值中心",
                leftButtonContent: "@back1"
			});
			App.footer.reset(0);
			App.container.show(new voucherCenterView());
		},
       
        toMycollects : function () {
            App.header.reset({
                title: "我的收藏",
                leftButtonContent: "@back1"
            });
            App.footer.reset(0);
            App.container.show(new MycollectsView());
        },
        toMycollectdetail : function () {
            App.header.reset({
               // title: "我的收藏",
                leftButtonContent: "@back",
                rightButtonContent: "@share"
            });
            App.footer.reset(0);
            App.container.show(new MycollectdetailView());
        },
        
        toSet:function () {
            App.header.reset({
                title: "设置",
                leftButtonContent: "@back"
                //rightButtonContent: "@share"
            });
            App.footer.reset(0);
            App.container.show(new setView());
        },
		toMembership:function () {
            App.header.reset({
                title: "会员资料",
                leftButtonContent: "@back1"
            });
            App.footer.reset(0);
            App.container.show(new MembershipView());
        }
        
	});
	
});